package common;

/**
 * Created on 2021/1/4 。
 *
 * @author wll 1978992154@qq.com
 */

/**
 * 只有一个数据的树的基本代码
 */
public class TreeNode {
    public int val;
    public TreeNode left;
    public TreeNode right;

    public TreeNode(int val) {
        this.val = val;
    }

    public TreeNode(int val, TreeNode left, TreeNode right) {
        this.val = val;
        this.left = left;
        this.right = right;
    }
}
